#!/bin/sh
# ./redis-cli -a {密码} --cluster add-node  {新节点IP}:{新节点端口} {任意集群节点IP}:{对应端口} --cluster-slave --cluster-master-id {对应的主节点ID}
./redis-cli -a $1 --cluster add-node $2 $3 --cluster-slave --cluster-master-id $4